package com.apps.sannotation.constraints;

import java.lang.annotation.*;

/**
 * 注解在属性上，指明字符串最大和最小长度
 */
@Target({ElementType.PARAMETER,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface StrLen {

    int min();

    int max();

    String errMsg() default "字符串长度不合法";
}
